package com.coldchain.cys.entity;

import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
;

/**
 * <p>
 * 
 * </p>
 *
 * @author tianpeng
 * @since 2018-09-05
 */
@TableName("t_cys_account")
public class CysAccount implements Serializable{

    private static final long serialVersionUID = 1L;

    /**
     * 承运商余额表
     */
	@TableId(value="userId", type= IdType.UUID)
	private String userId;
    /**
     * 承运商id
     */
	private String cid;
    /**
     * 余额
     */
	private BigDecimal money;
    /**
     * 乐观锁
     */
	@Version
	private Integer version;
    /**
     * 创建时间
     */
	private Date createtime;


	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getCid() {
		return cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}

	public BigDecimal getMoney() {
		return money;
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
}
